package net.jueb.util4j.script;

import java.util.concurrent.atomic.AtomicInteger;

import net.jueb.gameServer.AbstractScript;
import net.jueb.gameServer.GameService;

public class NormalScript extends AbstractScript{

	/**
	 * 此变量只在当前实例有效
	 */
	private AtomicInteger ato=new AtomicInteger(300);
	
	public NormalScript() {
		setScriptVersion(300);
	}
	
	@Override
	public void run() {
		log.debug("非静态脚本执行(version="+getScriptVersion()+"),脚本变量ato="+ato.incrementAndGet()+",外部变量ato="+GameService.getInstance().NormalInt.incrementAndGet());
	}

	@Override
	public int getMessageCode() {
		return GameService.NormalScriptCode;
	}
}
